package org.bim.view.drag.design.api.req;


import lombok.Getter;
import lombok.Setter;
import org.bim.view.drag.design.entity.TVisualCategory;

/**
 * @author pengxg
 * @date 2021/12/16 3:28 下午
 */
@Getter
@Setter
public class VisualCategoryReq extends PageReq {
    private String categoryKey;
    private String categoryValue;
    private String id;
    private String ownerId;
    private String projectId;
    private Boolean isDeleted;

    public TVisualCategory toEntity() {
        TVisualCategory entity = new TVisualCategory();
        entity.setId(id);
        entity.setCategoryKey(categoryKey);
        entity.setCategoryValue(categoryValue);
        entity.setIsDeleted(isDeleted);
        entity.setOwnerId(ownerId);
        entity.setProjectId(projectId);
        return entity;
    }
}
